package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;
import com.itheima.reggie.domain.SetmealDish;

import java.util.List;

//套餐
public interface SetmealService {

    //分页查询
    Page<Setmeal> findByPage(Integer pageNum, Integer pageSize, String name);

    //新增套餐
    void save(Setmeal setmeal);

    //删除套餐
    void deleteByIds(Long[] ids);

    //回显套餐信息
    Setmeal findById(Long id);

    //修改套餐信息
    void update(Setmeal setmeal);

    //修改套餐在售状态
    void updateStatus(Integer status, Long[] ids);

    //根据分类id显示套餐信息
    List<Setmeal> findByCategoryId(Long categoryId, Integer status);

    //查看套餐中菜品信息
    List<Dish> getmealDish(Long id);
}
